import {postReq,getReq,getBlobByFileStreamReq} from "@/common/request"

// 如果接口需要访问权限，请为对应接口写访问的权限值的注释
export default {
  /** 
      @requestName goodsListQuery  接口权限值
  **/
   goods:(reqParams?:{page:number,size:number})=>getReq('/mallManage/goods',reqParams),
    /** 
      @requestName goodsListDownLoad 接口权限值
  **/
   download:(reqParams:objType,config={})=>getBlobByFileStreamReq("/download",reqParams,{loadingTip:'下载中...',...config}),
  //  download:(reqParams:any)=>downloadByBlobReq("/pdfs/test.pdf",reqParams),
  downloadFile:(reqParams:{fileName:string},config={})=>getBlobByFileStreamReq("/sys/downloadFile",reqParams,config),
}


